package com.pengxun.manager.enums;

/**
 * @author zhongzhu
 * @Title: kpd-platform
 * @Package com.pengxun.manager.enums
 * @Description:
 * @date 2019/4/2317:45
 */
public enum ProduceTypeEnum {
    BOTTLE_CAP(0,"瓶盖"),
    ;

    private Integer type;

    private String desc;

    public static ProduceTypeEnum getEnumByType(Integer type){
        ProduceTypeEnum[] enums = ProduceTypeEnum.values();
        for(ProduceTypeEnum produceTypeEnum :enums){
            if(type  == produceTypeEnum.getType()){
                return  produceTypeEnum;
            }
        }
        return null;
    }

    ProduceTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
